﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META name="keywords" content="$!config.keywords" />
<META name="description" content="$!config.description" />
<title>$!config.name-新闻‖社会</title>
<link href="skin/default/css/css.css" rel="stylesheet" type="text/css">
<script>
function doEdit()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要编辑的数据！");
return false;
}
ListForm.parameter.value="edit";
ListForm.submit();
}
function doShow()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要编辑的数据！");
return false;
}
window.open("/showUser.do?cid="+id,"","")
}
function doDel()
{
if(ListForm.cid.value!="")
{
if(confirm("删除后数据不能恢复，确认要删除吗？")){
ListForm.parameter.value="del";
ListForm.submit();
}
}
}
function doAdd()
{
ListForm.parameter.value="new";
ListForm.cid.value="";
ListForm.submit();
}
function selectRow(id)
{
ListForm.cid.value=id;
}
function gotoPage(n)
{
	ListForm.page.value=n;
	ListForm.submit();
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
#parse("/inc/top.htm")
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="3" class="cn_12px">
<form id="ListForm" name="ListForm"  method="post" action="/bbsuser.do">		
	   <input type="hidden" name="parameter" value="list">	     
	   <input type="hidden" name="subCommand" value="">
	   <input type="hidden" name="page"   value="$!page">
	   <input type="hidden" name="cid"   value="$!cid">
  <tr>
      <td width="80%" height="23">BBS系统用户管理</td>
      <td><input type="button" name="Submit" value="添加新用户" onClick="doAdd()"></td>
      <td>&nbsp;</td>
  </tr>
  </form>
</table>
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="C4E0FC">
  <tr bgcolor="84B6E7" class="news_text"> 
    <td width="5%" height="27" bgcolor="84B6E7"> <div align="center" class="cn_12px"><strong><font color="#FFFFFF">用户名</font></strong></div></td>
    <td width="6%"><div align="center" class="cn_12px"><strong><font color="#FFFFFF">性别</font></strong></div></td>
    <td width="7%"><span class="cn_12px"><strong><font color="#FFFFFF">邮箱</font></strong></span></td>
    <td width="45%" bgcolor="84B6E7"> <div align="center" class="cn_12px"><strong><font color="#FFFFFF">简介</font></strong></div></td>
    <td> <div align="center" class="cn_12px"><strong><font color="#FFFFFF">注册时间</font></strong></div>      <div align="center" class="cn_12px"></div> </td>
  <td>&nbsp;</td>
  </tr>

   #foreach( $info in $list) 
  <tr id="$!info.cid" onMouseOver="this.className='MouseOver';" onMouseOut="this.className='MouseOut'" onDblClick="selectRow(this.id);doEdit();" onClick="selectRow(this.id);"> 
    <td width="5%" height="27">
       <div align="center">$!info.username</div></td>
    <td width="6%" ><div align="center">$!info.sex</div></td>
    <td width="7%" >$!info.email</td>
    <td width="45%" > 
      　$!info.intro</td>
    <td >$!info.inputTime </td>
  <td align="center" bgcolor="F6FCFD"><a href="#" onClick="selectRow('$!info.cid');doEdit();">编辑</a>　<a href="#" onClick="selectRow('$!info.cid');doDel();">删除</a></td>
  </tr>
  #end
</table>

<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" class="cn_12px">
  <tr>
    <td height="25" align="center" bordercolor="#00CCFF">第<strong>$!page</strong>页 共<strong>$!totalPage</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span> 　　分页：$!gotoPageHTML　</td>
  </tr>
</table>
<br>
#parse("/inc/foot.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end

